﻿<!DOCTYPE HTML>
<html>
<head>
<title>用户管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<#include "/views/ftl/base/manager_include.ftl">
<script type="text/javascript" src="${basePath }js/picbox.js"></script>
<link type="text/css" rel="stylesheet" href="${basePath}css/picbox.css"  />
</head>
<body style="background:#eef3f7;">
<#include "/views/ftl/base/head.ftl">
<div class="Main">
  <div class="dw">
<#include "/views/ftl/base/menu.ftl">
<#function a><#return "实名认证_List"></#function> 
      <div class="Rightbox fl">
        <!--面包屑-->
        <div class="Bread_crbs clear">
          <div class="Bread_crbs_img fl"></div>
          <div class="Bread_crbs_text fl"><a href="javascript:;"><span>实名认证</span></a><span class="fnt_famy">></span><a href="javascript:;"><span>认证信息</span></a></div>
        </div>
        <div class="clear"></div>
    	
        
        <div class="input_name">
          <table>
              <tr>
          <td>
          <span>真实姓名:<br></span>
         <br></td>
   		 <td>${(userRealNameVerify.realName)!''}<br>
		<br></td>
    	</tr>
    	   <tr>
          <td>
          <span>性别:<br></span>
         <br></td>
   		 <td><#if userRealNameVerify.sex=0>女</#if><#if userRealNameVerify.sex=1>男</#if><br>
		<br></td>
    	</tr>
    	
    	        <tr>
          <td>
          <span>身份证号:<br><br></span>
          </td>
   		 <td>${(userRealNameVerify.identityNum)!''}<br><br>
		</td>
    	</tr>        <tr>
          <td>
          <span>申请时间:<br><br></span>
          </td>
   		 <td>${(userRealNameVerify.createDate)!''}<br><br>
		</td>
    	</tr>    
    	    <tr>
          <td>
          <span>修改时间:<br><br></span>
          </td>
   		 <td>${(userRealNameVerify.modifyDate)!''}<br><br>
		</td>
    	</tr>
    	
          <tr>
          <td>
          <span>持卡个人照:</span>
          </td>
   		 <td> 	
   		　 <p><a  href="${(userRealNameVerify.personalImage)!''}" rel="lightbox-group" >
    		   <img  src="${(userRealNameVerify.personalImage)!'' }" height="100" width="100">
    	    </a></p>
		</td>
    	</tr>
    		<tr>
		    	 <td>
					 <span>身份证正面照片:　</span>
				</td>
		         <td> 　
		        	 <p> <a  href="${(userRealNameVerify.idFrontImage)!''}" rel="lightbox-group">
				  	<img  src="${(userRealNameVerify.idFrontImage)!'' }" height="100" width="100">
				   	</a></p>	 <br>
    			 </td>
    		 </tr>
    		 <tr>
    		 <td>
                 <span>身份证背面照片:</span>
              </td>
		     <td> 
						 <p><a  href="${(userRealNameVerify.idBackImage)!'' }" rel="lightbox-group">
					<img  src="${(userRealNameVerify.idBackImage)!'' }" height="100" width="100">
					</a></p>   
 			</td>
    		 </tr>
			<tr>
    		 <td> <span>审核结果:<br><br></span> </td>
    		 <td>　 
 	<#if (userRealNameVerify.isChecked==0)>未审核</#if>
 	<#if (userRealNameVerify.isChecked==1)>审核通过</#if>
 	<#if (userRealNameVerify.isChecked==2)>审核不通过</#if>
	 <br><br></td>
    		 </tr>
    		 <tr>
    		 <td> <span>备注:<br></span> </td>
    		 <td> <textarea name="bz"  id="bz" cols="20" rows="3" style="width: 173px; height: 61px;">${(userRealNameVerify.mark)!'' }</textarea><br><br></td>
    	 </tr> 
		<#if (userRealNameVerify.isChecked==0)>
    		
    		 <tr>
    		 <td> <br><span>审核操作:<br></span> </td>
    		 
     	       <td class="tbl_btn2">　<br>
		        <a style="cursor:pointer"><span id="editor" onclick="toVerity(${userRealNameVerify.id?c},1);">通过</span></a>　　　　
     	        <a style="cursor:pointer"><span id="delete" onclick="toVerity(${userRealNameVerify.id?c},2);">不通过</span></a>
     	       <br></td>
    		 </tr></#if>
    		 </table></div>
          <br>
</div>
</div>
</div>
<script type="text/javascript">
function toVerity(id,code) {
	var bz=document.getElementById("bz").value;
	if( code==2 && bz == ""){
		alert("请输入不通过的原因");
		return false;
	}
 	$.ajax({ 
 		url : "${basePath }manager/Verify_checked",
		data : { 
			verifyId : id,
 			isChecked: code,
 			mark : bz
 		}, 
 		dataType :"JSON",
 		cache : false, 
 		type : "POST",
 		success : function(dat){
 			alert(dat.msg);
 			window.location.href= "${basePath }manager/Verify_realNameList";
		}
	});
}
</script>
</body>
</html>